package com.csst.business.service.impl;

import java.util.List;

import com.csst.business.dao.INewsDao;
import com.csst.business.dao.IPhotoDao;
import com.csst.business.dao.TestDao;
import com.csst.business.model.TNews;
import com.csst.business.model.TPhotoGroup;
import com.csst.business.model.TPhotos;
import com.csst.business.model.TTrUser;
import com.csst.business.service.IPhotoService;
import com.csst.business.service.TestService;

public class PhotoServiceImpl implements IPhotoService{
	private IPhotoDao photoDao;

	public IPhotoDao getPhotoDao() {
		return photoDao;
	}

	public void setPhotoDao(IPhotoDao photoDao) {
		this.photoDao = photoDao;
	}

	@Override
	public int getOrderTotle() {
		// TODO Auto-generated method stub
		return photoDao.getOrderTotle();
	}

	@Override
	public List<TPhotoGroup> getPhotoGroupList(int startNum, int endNum) {
		// TODO Auto-generated method stub
		return photoDao.getPhotoGroupList(startNum,endNum);
	}

	@Override
	public void saveGroup(TPhotoGroup photog) {
		// TODO Auto-generated method stub
	    photoDao.saveGroup(photog);
	}

	@Override
	public void updateGroup(TPhotoGroup photog) {
		// TODO Auto-generated method stub
		photoDao.updateGroup(photog);
	}

	@Override
	public void delteGroup(String gid) {
		photoDao.delteGroup(gid);
	}

	@Override
	public TPhotoGroup getPhotoGById(String id) {
		// TODO Auto-generated method stub
		return photoDao.getPhotoGById(id);
	}

	@Override
	public void savePhoto(TPhotos photo) {
		// TODO Auto-generated method stub
		photoDao.savePhoto(photo);
	}

	@Override
	public int getPhotoTotle(String gid) {
		// TODO Auto-generated method stub
		return photoDao.getPhotoTotle(gid);
	}

	@Override
	public List<TPhotos> getPhotosBypgId(String gid, int startNum, int endNum) {
		// TODO Auto-generated method stub
		return photoDao.getPhotosBypgId(gid,startNum,endNum);
	}

	@Override
	public void deltephoto(String gid) {
		// TODO Auto-generated method stub
		photoDao.deltephoto(gid);
	}

	@Override
	public TPhotos getPhotoById(String gid) {
		// TODO Auto-generated method stub
		return photoDao.getPhotoById(gid);
	}

	@Override
	public boolean hasChildPhoto(String gid) {
		// TODO Auto-generated method stub
		return photoDao.hasChildPhoto(gid);
	}

	
	
}
